﻿@model IList<S4Store.Domain.AfterSaleKpi.SparePartsMonthInput>
@{
    ViewBag.Title = "Query";
    Layout = null;
}
<style>
    .datablock{ width:80px; height:30px; display:block; float:left; line-height:30px; margin:0 5px 5px 0;}
    .datablock a{ display:block; width:80px; height:30px; line-height:30px; text-align:center;}
</style>
<div class="verticalSplitContainer" style="height:100%;width:100%; overflow:hidden">
@Html.Action("StoreList", "Common", new { action = "Index", controller = "SparePart" })
<div style="width:100%; overflow:auto" ratio="*">
<table   style="border-collapse:collapse; margin:20px" class="reporttable2">
    <tr>
        <th>
        <div style="float:left"></div>
        <div style="float:right">
            <div class="indexred">红色为未录入</div>
          <div class="indexyellow">黄色为未确认</div>
            <div class="indexgreen">绿色为已确认</div>
        </div>
        </th>
    </tr>
</table>
<div style="width:100%;">
    @for (int i = 0; i < 24; i++)
    {
        DateTime dt = DateTime.Now.AddMonths(-i);
        <span class="datablock" @Html.Action("MonthTd",new {y=dt.Year,m=dt.Month})>
            <a href="@Url.Action("AddOrUpdate", new { y = dt.Year, m = dt.Month })" target="dialog" width="960" backtype="html" refreshonclose="true" title="录入@(dt.Month)月数据">@dt.ToString("yyyy年MM月")</a>
        </span>
    }
</div>
</div>
</div>

